<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>增加页面</title>
<%
	String bathPath = request.getContextPath();
	pageContext.setAttribute("bathPath", bathPath);
%>
  <link rel="stylesheet" href="${bathPath}/frame/layui/css/layui.css"  media="all">
  <script type="text/javascript" src="${bathPath}/js/jquery-1.9.1.min.js" ></script>
<script type="text/javascript" src="${bathPath}/js/ajaxSessionOut.js" ></script>
<!-- layer -->
<link type="text/css" rel="stylesheet" href="${bathPath}/js/layer/skin/layer.css"/>
<script type="text/javascript" src="${bathPath}/js/layer/layer.js" ></script>
<script src="${bathPath}/frame/layui/layui.js" charset="utf-8"></script>
<style type="text/css">
.my-skin .layui-layer-btn a {
	background-color:#009688;
</style>
<script type="text/javascript">
function search(){
	var param=$("form").serialize();
		
		$.ajax({
			 type:"POST",
			 async:false,
			 dataType:"text",
			 data:param,
			 url:"${bathPath}/aDKActime/insert.action?ctrlAddr="+$("#ctrlAddr").val(),
		     success:function(data){
		    	/*  if(data!="SUCCESS"){
						layer.msg(data);
					} */
					layer.confirm("保存成功！", {btn: ['确定'], title: "提示",skin:"my-skin"}, function(){
						layer.close(layer.index);
						parent.location.reload(); 
					});
		     }
		 });
}
layui.use(['form', 'laydate'], function(){
    var form = layui.form
            ,layer = layui.layer
            ,laydate = layui.laydate
    //时间
    laydate.render({
        elem: '#start1'
        ,type: 'time'
    });
    laydate.render({
        elem: '#end1'
        ,type: 'time'
    });
    laydate.render({
        elem: '#start2'
        ,type: 'time'
    });
    laydate.render({
        elem: '#end2'
        ,type: 'time'
    });
    laydate.render({
        elem: '#start3'
        ,type: 'time'
    });
    laydate.render({
        elem: '#end3'
        ,type: 'time'
    });
    //日期
    laydate.render({
        elem: '#validBeginDate'
    });
    laydate.render({
        elem: '#validEndDate'
    });
});
</script>
<style type="text/css">
	img {
		margin-left: 10px;
		width: 20px;
		height: 20px;
	}
	
	
	}
</style></head>
<body >
	
	<div id="tt" class="easyui-panel" style="width:450px;height:550px;">
	
	<!-- <div class="top_page_name" style="font-size: 20px;margin-left: 50px;color: #4abcf0;">教学日志</div> -->
<div class="first_div" style="border-right:none;border-bottom:none;border-left:none;width:450px;">

	<form class="layui-form layui-form-pane" action="">
	<input type="hidden" id="autoID" name="autoID" value="${u.autoID}" > 
    <input type="hidden" id="ctrlAddr" name="ctrlAddr" value="${u.ctrlAddr}" > 
    <div class="layui-form-item" style="margin-left:35px; margin-top: 15px;">
        <label class="layui-form-label" style="width:200px;">名称：</label>
        <div class="layui-input-inline">
           <input type="text" id="timeName" name="timeName" autocomplete="off" class="layui-input" placeholder="请输入" value="${u.timeName}"  style="width: 190px;">
        </div>
    </div>

    <div class="layui-form-item" style="margin-left:35px; margin-top: 15px;">
    <label class="layui-form-label" style="width:200px;">第一时间段起始时间：</label>
	   <!-- <div class="layui-input-block" style="width:150px;" > -->
	   <div class="layui-input-inline">
	      <input type="text" id="start1" name="start1" autocomplete="off" class="layui-input" placeholder="请输入" value="${u.start1}"   style="width: 190px;">
	    </div>
  </div>

  <div class="layui-form-item" style="margin-left:35px; margin-top: 15px;">
    <label class="layui-form-label"  style="width:200px;">第一时间段终止时间：</label>
	    <!-- <div class="layui-input-block" style="width: 150px;" > -->
	    <div class="layui-input-inline">
	      <input type="text" id="end1" name="end1" autocomplete="off" class="layui-input" placeholder="请输入" value="${u.end1}"   style="width: 190px;">
	    </div>
  </div>
  
  <div class="layui-form-item" style="margin-left:35px; margin-top: 15px;">
    <label class="layui-form-label" style="width:200px;">第二时间段起始时间：</label>
	   <!-- <div class="layui-input-block" style="width: 150px;" > -->
	   <div class="layui-input-inline">
	      <input type="text" id="start2" name="start2" autocomplete="off" class="layui-input" placeholder="请输入" value="${u.start2}"   style="width: 190px;">
	    </div>
  </div>
  
  <div class="layui-form-item" style="margin-left:35px; margin-top: 15px;">
    <label class="layui-form-label"  style="width:200px;">第二时间段终止时间：</label>
	   <!-- <div class="layui-input-block" style="width: 150px;" > -->
	   <div class="layui-input-inline">
	      <input type="text" id="end2" name="end2" autocomplete="off" class="layui-input" placeholder="请输入" value="${u.end2}"   style="width: 190px;">
	    </div>
  </div>
  
  <div class="layui-form-item" style="margin-left:35px; margin-top: 15px;">
    <label class="layui-form-label" style="width:200px;">第三时间段起始时间：</label>
	   <!-- <div class="layui-input-block" style="width: 150px;" > -->
	   <div class="layui-input-inline">
	      <input type="text" id="start3" name="start3" autocomplete="off" class="layui-input" placeholder="请输入" value="${u.start3}" /  style="width: 190px;">
	    </div>
  </div>
  
  <div class="layui-form-item" style="margin-left:35px; margin-top: 15px;">
    <label class="layui-form-label"  style="width:200px;">第三时间段终止时间：</label>
	   <!-- <div class="layui-input-block" style="width: 150px;" > -->
	   <div class="layui-input-inline">
	      <input type="text" id="end3" name="end3" autocomplete="off" class="layui-input" placeholder="请输入" value="${u.end3}"  style="width: 190px;">
	    </div>
  </div>
  
  <div class="layui-form-item" style="margin-left:35px; margin-top: 15px;">
    <label class="layui-form-label"  style="width:200px;">有效期起始日：</label>
	   <!-- <div class="layui-input-block" style="width: 150px;" > -->
	   <div class="layui-input-inline">
	      <input type="text" id="validBeginDate" name="validBeginDate" autocomplete="off" class="layui-input" placeholder="请输入" value="${u.validBeginDate}"   style="width: 190px;">
	    </div>
  </div>
  
  <div class="layui-form-item" style="margin-left:35px; margin-top: 15px;">
    <label class="layui-form-label"  style="width:200px;">有效期截止日：</label>
	   <!-- <div class="layui-input-block" style="width: 150px;" > -->
	   <div class="layui-input-inline">
	      <input type="text" id="validEndDate" name="validEndDate" autocomplete="off" class="layui-input" placeholder="请输入" value="${u.validEndDate}"  style="width: 190px;">
	    </div>
  </div>
  
</form>
	 <div class="layui-form-item">
        <button class="layui-btn" lay-submit="" lay-filter="sub" style="margin-left:215px;" onclick="search()">保存</button>
    </div>
	<div style="margin:3px 10px 10px 10px;"></div>
	
	<table id="dg"></table>
	</div>
</body>
</html>